load "header.plt"

set size 0.9, 1

xmin=0; xmax=32
ymin=0; ymax=35

set xrange [xmin:xmax]
set yrange [ymin:ymax]


k=2
xleg=xmax*1.01
yleg=ymax*1.01
yarr=0.3

set linestyle 1 linetype 5 linewidth 1 pointtype 1 pointsize 1

set label "k" at xleg,k left
set label "log n" at xleg,log(xmax) left
set label "V n" at xleg,xmax**0.5 left
# set arrow from xleg+0.3,xmax**0.5+yarr to xleg+0.8,xmax**0.5+yarr nohead ls 1
set label "n" at xleg,xmax left
set label "n log n" at 12,yleg
set label "n^2" at 7,yleg

set output "lineal.cgm"
plot [n=xmin:xmax] \
	k title "k", \
	log(n) title "log(n)", \
	n**0.5 title "n^1/2", \
	n title "n", \
	n*log(n) title "n log(n)", \
	0.6*n**2 title "n^2"

load "footer.plt"
# EOF
